#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
int main()
{
    char a[90] = { 0 }, b = 0;
    int i;
    b = getchar();
    getchar();
    gets(a);
    for (i=0; i < strlen(a); i++)
    {
        if (a[i] == b)
        {
            printf("index = %d", i);
        }
    }

    return 0;
}